var e = require;
var t = module;
var o = exports;
var n =
    (this && this.__decorate) ||
    function (e, t, o, n) {
        var i,
            r = arguments.length,
            a = r < 3 ? t : null === n ? (n = Object.getOwnPropertyDescriptor(t, o)) : n;
        if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) a = Reflect.decorate(e, t, o, n);
        else
            for (var c = e.length - 1; c >= 0; c--)
                (i = e[c]) && (a = (r < 3 ? i(a) : r > 3 ? i(t, o, a) : i(t, o)) || a);
        return r > 3 && a && Object.defineProperty(t, o, a), a;
    };
Object.defineProperty(o, "__esModule", {value: !0});
var i = e("UIConfig"),
    r = (e("UIDefine"), e("UIManager")),
    a = cc._decorator,
    c = a.ccclass,
    u = a.property,
    s =
        (a.menu,
        (function () {
            function e() {
                this.uiName = "";
            }
            Object.defineProperty(e.prototype, "emUiSelect", {
                get: function () {
                    return i.UIID[this.uiName] || -1;
                },
                set: function (e) {
                    this.uiName = i.UIID[e];
                },
                enumerable: !1,
                configurable: !0
            });
            Object.defineProperty(e.prototype, "jump", {
                get: function () {
                    return !1;
                },
                set: function () {},
                enumerable: !1,
                configurable: !0
            });
            e.prototype.getUIID = function () {
                return r.default.getUiid(this.uiName);
            };
            e.prototype.openUI = function () {
                var e = this.getUIID();
                e >= 0 && r.default.open(e);
            };
            n([u()], e.prototype, "uiName", void 0);
            n([u({type: cc.Enum(i.UIID)})], e.prototype, "emUiSelect", null);
            n([u()], e.prototype, "jump", null);
            return n([c("UIIDEdit")], e);
        })());
o.default = s;
